<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>vue</title>
        <!-- 引入vue文件-->
		<script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
	</head>
	<body>
		<div id="vue">
			<input type="button" v-model="value" v-on:click="show()"/>
			<!--v-show="true/false" 显示/隐藏--> 
			<input type="text" value="哈哈哈" v-show="message" />
		</div>
	</body>
	<script type="application/javascript">
		new Vue({
			el:'#vue',
			data:{
				value:'show',
				message:true
			},
			methods:{
				show:function(){
					this.message=false;
				}
			}
		})
	</script>
</html>
